package com.shihb.structuralpatterns.compositepattern;/**
 *Description:系是已经叶子节点就不用组合也不用实现add remove方法。
 *Version:1.0.0
 *@author shihb
 *@date 2020/7/19 22:00
 */
public class Department extends  Organization {

  public Department(String name) {
    super(name);
  }

  @Override
  public String getName() {
    return super.getName();
  }

  @Override
  public void setName(String name) {
    super.setName(name);
  }

  @Override
  protected void show() {
    System.out.println(getName());
  }
}
